require 'mysql2'
client = Mysql2::Client.new(host: 'localhost', username: 'root', password: 'ayaxyz1425gg')
#sql = 'select NOW() as timestamp'
sql = 'show databases'
result = client.query( sql)
result.each do |row|
  puts row['Database']
end